export const useAppStore = defineStore('app', () => {

    /**是黑暗 */
    const isDark = ref(false)
    /**切换黑暗模式 */
    function toggleDark() {
        const dark = useDark()
        isDark.value = !isDark.value

    }
    return {
        isDark,
        toggleDark,
    }
})